<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
商品名称:{{ fruit.name }}
<br>
商品价格:{{ fruit.price }}
<br>
{% if fruit.name == "xx" %}
    我要买十斤
{% else %}
    不买了
{% endif %}
</body>
</html>